package com.designMode.proxy.staticProxy;


/**
 * 静态代理 场景类
 */
public class Client {
    public static void main(String[] args) {
        //新建主题类
        RealSubject realSubject = new RealSubject();
        //代理主题类
        Subject proxySubject = new Proxy(realSubject);
        //执行代理类方法
        proxySubject.request();
    }
}
